using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevJobplanTList, table list:dev_jobplan_t 
	/// </summary>
	internal class DevJobplanTList : BaseWritableEntities<DevJobplanT>, IDevJobplanTList
	{
		private DevJobplanTQueryDAO _queryDAO;
		private DevJobplanTWritingDAO _writeDAO;

		public DevJobplanTList(DevJobplanTQueryDAO queryDao, DevJobplanTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevJobplanT,table items:dev_jobplan_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobplanT> GetDevJobplanTAllItems()
		{
			return _queryDAO.GetDevJobplanTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevJobplanT,table items:dev_jobplan_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobplanT> GetDevJobplanTItemsById(int id)
		{
			return _queryDAO.GetDevJobplanTItemsById(id);
		}

		/// <summary>
		/// 增加一行DevJobplanT,table item:dev_jobplan_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevJobplanT(DevJobplanT item)
		{
			return this._writeDAO.AddDevJobplanT(item);
		}

		/// <summary>
		/// 增加多行DevJobplanT,table items:dev_jobplan_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevJobplanTs(DevJobplanT[] items)
		{
			return this._writeDAO.AddDevJobplanTs(items);
		}

		/// <summary>
		/// 更新一行DevJobplanT,table item:dev_jobplan_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevJobplanT(DevJobplanT item)
		{
			return this._writeDAO.UpdateDevJobplanT(item);
		}

		/// <summary>
		///  更新多行DevJobplanT,table items:dev_jobplan_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevJobplanTs(DevJobplanT[] items)
		{
			return this._writeDAO.UpdateDevJobplanTs(items);
		}

		/// <summary>
		/// 删除一行DevJobplanT,table item:dev_jobplan_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobplanT(DevJobplanT item)
		{
			return this._writeDAO.DeleteDevJobplanT(item);
		}

		/// <summary>
		///  删除多行DevJobplanT,table items:dev_jobplan_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobplanTs(DevJobplanT[] items)
		{
			return this._writeDAO.DeleteDevJobplanTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevJobplanT,table entity:dev_jobplan_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobplanTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevJobplanTByIds(ids);
		}

	}
}
